package queue;

import java.util.LinkedList;
import java.util.List;
import java.util.Queue;

/**
 * Created with Intellij IDEA.
 * Description;
 * User:墨琦
 * Data:2023-04-16
 * Time:14:55
 */
public class Text {
    public static void main(String[] args) {
    MyQueue one=new MyQueue();
    one.myoffer(1);
        one.myoffer(88);
        one.myoffer(44);one.myoffer(33);one.myoffer(89);
        one.mypoll();
        System.out.println(one.mypeek());
        one.show();
        System.out.println("-----------函数的------------");
        Queue<Integer> two=new LinkedList<>();
        two.add(22);
        two.offer(1);
        two.offer(3);
        two.offer(45);
        System.out.println( two.peek());
        System.out.println("-----------循环列表------------");
        CirculateQueue three=new CirculateQueue(7);
        for(int i=0;i<7;i++)
        {
            three.enqueue(i);
        }
        System.out.println(three.getRear());
    }
}
